package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Question;
import cn.wolfcode.luowowo.article.query.QuestionQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IQuestionService {
    int deleteByPrimaryKey(Long id);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    Long saveOrUpdate(Question question);

    PageInfo<Question> query(QuestionQuery qo);

    List<Question> queryByViewTop3(Long id);

    int queryAttention(Long id, Long questionId);

    void setAttention(Long questionId, Long id, Integer state);

    void addviewnum(Long questionId, int num);

    void addreplynum(Long questionId, int num);

    void addthumbupnum(Long questionId, int num);
}
